package org.soc.timesheet.domain.repository;
import java.util.List;
import org.soc.timesheet.custom.annotation.AOPLogger;
import org.soc.timesheet.custom.annotation.AOPLogger.LoggerLevel;
import org.soc.timesheet.domain.Functions;
import org.soc.timesheet.domain.Roles;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.roo.addon.layers.repository.jpa.RooJpaRepository;
import org.springframework.stereotype.Repository;

@Repository
@RooJpaRepository(domainType = Functions.class)
public interface FunctionsRepository extends JpaRepository<Functions, Integer>, JpaSpecificationExecutor<Functions> {
	
	@AOPLogger(name="repository.Functions",loggerLevel={LoggerLevel.DEBUG,LoggerLevel.INFO})
	public List<Functions> findByRolesesIn(List<Roles> roles);
}
